package org.dromara.hotel.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 酒店订单对象 ter_hotel_orders
 *
 * @author xch
 * @date 2025-06-11
 */
@Data
@TableName("ter_hotel_orders")
public class TerHotelOrders  {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private String id;

    /**
     *
     */
    private Long userId;

    /**
     *
     */
    private Long roomId;

    /**
     *
     */
    private Long hotelId;

    /**
     * 入住开始日期
     */
    private Date startDate;

    /**
     * 入住结束日期
     */
    private Date endDate;

    /**
     * 总结
     */
    private Long totalPrice;

    /**
     * 状态枚举
     */
    private Integer orderStatus;



    /**
     * 预付金额
     */
    private Integer prepayAmount;

    /**
     * 入住人电话
     */
    private String mobile;

    /**
     * 优惠劵id
     */
    private String couponId;

    /**
     * 支付方式（微信/支付宝）
     */
    private String paymentMethod;

    /**
     * 是否续订订单
     */
    private String isRenew;

    /**
     * 优惠金额
     */
    private Long couponPrice;

    /**
     * 优惠时长
     */
    private Long couponHour;

    /**
     * 预计收入
     */
    private Long revenue;

    /**
     * 钥匙id
     */
    private String keyId;

    /**
     * 门锁密钥
     */
    private String doorKey;

    /**
     * 原续订id
     */
    private String renewId;

    /**
     * 退款编号
     */
    private String refundId;

    private String  name;
    private String arrivalTime;
    private String roomNo;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    /**
     * 身份证图片
     */
    private String idCardurl;
}
